import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import axios from 'axios'
// import { etSessionStorage } from "@/common";

// //使用路由守卫实现登录的权限验证
// router.beforeEach(function (to, from, next) {
//     let users = setSessionStorage('doctor');
//     //除了登录、注册之外，都需要判断是否登录
//     if (!(to.path == '/' || to.path == '/login' || to.path == '/register')) {
//         if (doctor == null) {
//             router.push('/');
//         }
//     }
//     next();
// })

const app = createApp(App)

app.use(router)

app.use(ElementPlus)

app.mount('#app')
